project(ksvgeditor_svgdocument)

find_package(Qt5 REQUIRED COMPONENTS Widgets Core Gui Xml Svg)

set(UI_FILES
)
set(RCC_FILES
)
set(HEADER_FILES
kshapesvgfactory.h
ksvgfilemanager.h
kimagefilemanager.h
ksvgsavetask.h
ksvgloadtask.h
kshapeutils.h
)
set(CPP_FILES
kshapesvgfactory.cpp
ksvgfilemanager.cpp
kimagefilemanager.cpp
ksvgsavetask.cpp
ksvgloadtask.cpp
kshapeutils.cpp
)

SET(CMAKE_INCLUDE_CURRENT_DIR ON)
SET(CMAKE_AUTOMOC ON)
SET(CMAKE_AUTORCC ON)
SET(CMAKE_AUTOUIC ON)

source_group("Form Files" FILES ${UI_FILES})
source_group("Resource Files" FILES ${RCC_FILES})
source_group("Header Files" FILES ${HEADER_FILES})
source_group("Source Files" FILES ${CPP_FILES})

add_library(${PROJECT_NAME} STATIC ${HEADER_FILES} ${CPP_FILES} ${UI_FILES} ${RCC_FILES})

target_include_directories(${PROJECT_NAME} PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}
)

target_link_libraries(${PROJECT_NAME} PUBLIC
    ksvgeditor_core
)

target_link_libraries(${PROJECT_NAME} PUBLIC
    Qt5::Widgets
    Qt5::Gui
    Qt5::Core
    Qt5::Xml
    Qt5::Svg
)

set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER "Libraries/Controller")